const express = require('express')

const app = express()

app.use(express.json())
app.use(require('cors')())
app.use('/upload', express.static(__dirname + '/upload'))
require('./routes')(app)
app.listen(12580, () => {
    console.log('http://localhost:12580')
})